package com.bjmashibing.system.OSFileIO.io_demo.anotherStream;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;


public class ByteArrayOutputStreamDemo {

    public static void main(String[] args) throws IOException {
        demo1();
    }

    public static void demo1() throws IOException {
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        byteArrayOutputStream.write(123);
        byteArrayOutputStream.write("管大为".getBytes(StandardCharsets.UTF_8));
    }


}
